package com.behome.netty.netty_D.enums;


public enum EbmLevel {
    DEFAULT((byte)0, "缺省"),
    ONE((byte)1, "1级(特别重大)"),
    TWO((byte)2, "2级(重大)"),
    THREE((byte)3, "3级(较大)"),
    FOUR((byte)4, "4级(一般)");

    byte value;
    String name;

    public byte getValue() {
        return this.value;
    }

    public String getName() {
        return this.name;
    }

    private EbmLevel(byte value, String name) {
        this.value = value;
        this.name = this.name();
    }

    public static EbmLevel getEnumByValue(byte value) {
        EbmLevel[] var1 = values();
        for (EbmLevel type : var1) {
            if (type.value == value) {
                return type;
            }
        }
        return DEFAULT;
    }
}